package com.jiazhong.service;

import com.jiazhong.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userservice")
public class UserServiceImpl implements UserService{
    @Autowired
    private UserDao userDao;//解耦，控制反转 依赖注入
    @Override
    public void deluser1(Integer id) {
        System.out.println("2222");
        userDao.deluser(id);
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
